Supported PrGeneral Opcodes

The Carbon Printing Manager provides the PMGeneral function as a replacement for the original PrGeneral function. However, Apple suggests that you reduce your reliance on these functions because they are not currently supported by all printer drivers, and because they are not likely to be supported in future versions of the Mac OS.

The following table lists PrGeneral opcodes that are supported in Carbon. For opcodes that have an associated accessor function, you use that function instead of passing the opcode to PMGeneral . For example, use PMGetOrientation instead of passing the getRotnOp constant to PMGeneral . The PMGeneral function returns the kPMNotImplemented result code for any unsupported opcodes, and for opcodes that now have accessor functions.

New accessors for PrGeneral opcodes
Opcode Value Accessor
GetRslDataOp 4 PMGetPrinterResolution , PMGetPrinterResolutionCount , PMGetIndexedPrinterResolution
SetRslOp 5 PMSetResolution
DraftBitsOp 6 PMGeneral supports this opcode
NoDraftBitsOp 7 PMGeneral supports this opcode
getRotnOp 8 PMGetOrientation
NoGrayScl 9 PMGeneral supports this opcode
GetPSInfoOp 10 PMGeneral supports this opcode
PSIntentionsOp 11 PMGeneral supports this opcode
EnableColorMatchingOp 12 PMGeneral supports this opcode
PSAdobeOp 14 PMGeneral supports this opcode
PSPrimaryPPDOp 15 PMGeneral supports this opcode
kLoadCommProcsOp 16 PMGeneral supports this opcode
kUnloadCommProcsOp 17 PMGeneral supports this opcode
kExtendPrintRecOp 18 PMGeneral supports this opcode
kGetExtendedPrintRecOp 19 PMGeneral supports this opcode
kPrinterDirectOpCode 20 PMGeneral supports this opcode
kSetExtendedPrintRecOp 21 PMGeneral supports this opcode
kPrVersionOp 22 PMGeneral supports this opcode
kGetPrinterInfo 23 PMGeneral supports this opcode
kIsSamePrinterInfo 24 PMGeneral supports this opcode
kSetDefaultPrinterInfo 25 PMGeneral supports this opcode
kPrEnablePartialFonts 26 PMGeneral supports this opcode